package com.zheng.shop.common.constant;

/**
 * Created by IntelliJ IDEA.
 * User: xinqi
 * Date: 2017/11/14
 * Time: 9:00
 */
public enum ShopResultConstant {
    FAILED(0, "操作失败"),
    SUCCESS(1, "操作成功"),
    FAILED_MESSAGE(2, "操作异常"),
    FILE_TYPE_ERROR(20001, "File type not supported!"),
    INVALID_LENGTH(20002, "Invalid length"),
    INVALID_PARAMETER(20003, "Invalid parameter");

    public int code;

    public String message;

    ShopResultConstant(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    }
